import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    data: [],
    title: '',
    dataAxis: [],
  },
  mutations: {
    init(state, payload) {
      state.data = payload.data;
      state.dataAxis = payload.dataAxis;
      state.title = payload.title;
    }
  },
  actions: {
  },
  modules: {
  }
})
